//
//  TableViewCell.m
//  oneSelect
//
//  Created by satoshi_uma on 2020/6/18.
//  Copyright © 2020 satoshi_uma. All rights reserved.
//

#import "TableViewCell.h"


@interface TableViewCell()

/// 支付类型
@property (weak, nonatomic) IBOutlet UILabel *payTypeName;

/// 是否选中
@property (weak, nonatomic) IBOutlet UIImageView *payTypeImage;

@end


@implementation TableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];

}

- (void)setPayTitle:(NSString *)title{
    _payTypeName.text = title;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected) {
        _payTypeImage.image = [UIImage imageNamed:@"select"];
    }
    if (!selected) {
        _payTypeImage.image = [UIImage imageNamed:@"normal"];
    }
    
}

@end
